package com.yanqu.road.entity.thridparty;

public class ThirdPartyResult {

    public ThirdPartyResult() {
    }

    public ThirdPartyResult(String result) {
        this.result = result;
    }

    private String result;
    private Object data;

    public static ThirdPartyResult success(Object data) {
        ThirdPartyResult thirdPartyResult = new ThirdPartyResult("1");
        thirdPartyResult.setData(data);
        return thirdPartyResult;
    }

    public static ThirdPartyResult fail(String msg) {
        return new ThirdPartyResult(msg);
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
